<!-- 首页 -->
<template>
  <div class="index">
    <webTop ref="webTopRef" :paramThis="currentThis"/>
    <div class="web-container" :class="{ 'web-container-closed': isCollapse }">
      <router-view :key="key"></router-view>
    </div>
  </div>
</template>

<script>
import webTop from "@/components/webTop.vue";
import NavMenu from "@/components/NavMenu.vue";
import {baseAPI} from "@/api/base";

export default {
  path: "Index",
  components: {
    webTop,
    NavMenu,
  },
  data() {
    return {
      currentThis: this,
      isCollapse: false,
      text: "",
      activeIndex: "/login",
      sendData: [],
      timer: null,
      key: ''
    };
  },
  created() {
  },
  mounted() {
  },
  methods: {},
};
</script>

<style scoped>
.left-nav {
  width: 230px;
  height: calc(100vh);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
}

.logo-div {
  width: 230px;
  height: 60px;
  text-align: center;
  background-color: #24292e;
  cursor: pointer;
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: 60px;
}

.logo-div img {
  height: 100%;
}

.close-nav {
  width: 70px !important;
  transition: width 0.001s ease-in-out;
}

.close-nav >>> .el-submenu__title .el-submenu__icon-arrow,
.close-nav >>> .el-submenu__title span {
  display: none;
}

.close-nav-logo {
  width: 100%;
  height: 100%;
  background: url("../../assets/img/Icon.jpg") no-repeat center center;
  background-size: 60%;
}

.close-nav-logo:hover {
  background-color: rgb(0, 61, 82);
}

.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}

.left-nav .nav .el-menu::-webkit-scrollbar {
  width: 10px;
  background-color: #24292e;
  position: relative;
}

.left-nav .nav .el-menu::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #969689;
}

.web-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* padding-left: 230px; */
  /* padding-top: 60px; */
  padding-left: 0px;
  padding-top: 54px;
  background-color: #f1f1f1;
}

.web-container-closed {
  padding-left: 70px;
}

.leftview {
  width: 230px;
  height: calc(100vh);
  position: fixed;
  left: 0;
  top: 60px;
  z-index: 10;
  background-color: #fff;
}
</style>
